Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for deflate raw (Closes #34) #35

Merged
merged 1 commit into from
Feb 23, 2023

Conversation

danielgindi
Copy link
Contributor

@danielgindi danielgindi commented Nov 27, 2021

I've encountered several servers which use the actual deflate algorithm when declaring deflate as the Content-Encoding.
The RFC of course states a gzip-compatible compression format.
However, as some people have said before, the internet is messy. And I seem to not be the only one encountering this.

This is a workaround with a simple detection that will pick the right decompression algorithm for the situation.

Fixes #34

index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
@sindresorhus
Copy link
Owner

Friendly bump

@danielgindi
Copy link
Contributor Author

I missed your replies in a flood of github notifications... will take a look

@danielgindi
Copy link
Contributor Author

Done

@sindresorhus sindresorhus merged commit be87e51 into sindresorhus:main Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

invalid header check when Content-Encoding: deflate and it's raw deflate.
2 participants